class PaginationData {
  constructor(pageIndex, pageSize, totalCount) {
    this.pageIndex = pageIndex;
    this.pageSize = pageSize;
    this.totalCount = totalCount;
  }
}
class Permission {
  constructor(obj) {
    if (typeof obj === "object") {
      this._constructorSearchOrUpdateObj(obj);
    } else if (typeof obj === "undefined") {
      this._constructorCreateObj();
    }
  }
  _constructorCreateObj() {
    this.id = "00000000-0000-0000-0000-000000000000";
    this.parentId = "00000000-0000-0000-0000-000000000000";
    this.authName = "";
    this.action = "";
    this.path = "";
    this.icon = "";
    this.isActive = false;
    this.level = 0;
    this.componentName = "";
    this.sort = 0;
  }
  _constructorSearchOrUpdateObj(obj) {
    this.id = obj.id;
    this.parentId = obj.parentId;
    this.authName = obj.authName;
    this.action = obj.action;
    this.path = obj.path;
    this.icon = obj.icon;
    this.isActive = obj.isActive;
    this.level = obj.level;
    this.componentName = obj.componentName;
    this.sort = obj.sort;
  }
}

export { PaginationData, Permission };
